public class Student {
    private int stuNo;
    private String stuName;
    private char gender;
    private int age;

    public Student(){

    }

    public Student(int a,String b,char c,int d){
        this.stuNo=a;
        this.stuName=b;
        this.gender=c;
        this.age=d;
    }

    private void setters(){

    }
    private void getters(){

    }

    public String toString(){
        return "学号:"+stuNo+"姓名:"+stuName+"性别:"+gender+"年龄："+age;
    }
}

class Test3{
    public static void main(String[] args) {
        Student student=new Student(2599,"杨心远",'男',18);
        System.out.println(student);
    }
}
